/**
 * Created by ybjaaaaa on 2015/3/25.
 */

//加载bootstrap
define(['jquery', 'bootstrap'],function($) {
    //jquery代码

    $(document).ready(function(){
        $(".xzzjxtable").hide();
    });

    $(".navbar-custom>ul:first-child>li:first-child>a").click(function(){
        /*window.location.href=document.referrer;*/
        window.history.go(-2);
    });

   /* $(".nav_home").click(function () {
        if(window['user']!=null){
            window.location.href=window.user.location;
        }
        else{
            window.location.href='index.html';
        }

    });*/

    //质量检查单提交
    $("#zljcd").click(function () {
        window.location.href="/zljcd.html";
    });

    //选择质检项
    $("#xzzjx").click(function () {
        window.location.href="/zljc.html";
    });

    //查找对应的质检项
    $("#selectdjjx").change(function(data){
        if(this.value=='2'){
            //开启选中内容
            $(".xzzjxtable").show();
        }
        else {
            $(".xzzjxtable").hide();
        }
    });

    //
    $('.jqqd').click(function(){
        alert("功能正在建设中");
    });


    $('#xzrfaqjcx_submit').click(function(){
        window.location.href='/yfxaqjc.html';
    });

    $('#yfxaqjc_sumbit').click(function(){
        window.location.href='/yfxajd.html';
    });

    $('#rcaqxj_submit').click(function(){
        window.location.href='/rcaqxjd.html';
    });

    $('.wdgz_zly_table>tbody>tr>td>a').click(function(){
        window.location.href='/zljcd.html';
    });




 });
